package com.dhcc.DRGsHosp.core.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.openkoala.koala.commons.domain.KoalaLegacyEntity;

/**
 * @title :AnnualSTD.java
 * @description :年度标杆
 * @author :liqingyang
 * @date :2015年4月2日
 * @version :1.0
 * @copyright :DHCC 2013-2014
 */
@Entity
@Table(name = "T_ANNUALSTD", schema = "DRGs")
public class AnnualSTD extends KoalaLegacyEntity {

	private static final long serialVersionUID = -2700241427681303048L;
	
	@Id
	@Column(name = "AS_PID", nullable = false)
	private String asPid;
	
	@Column(name = "AS_ID", nullable = false)
	private String asId ;
	
	// 标杆年
	@Column(name = "AS_YEAR", nullable = false)
	private String asYear;

	// MDC代码
	@Column(name = "AS_MDC_CODE")
	private String asMdcCode;

	// 总费用
	@Column(name = "AS_TOTAL_CASE")
	private Double asTotalCase;

	// 调整后的次均费用
	@Column(name = "AS_AVG_FEE")
	private Double asAvgFee;
	
	// 次均费用（年度）
	@Column(name = "PRIMEVAL_AVG_FEE")
	private Double primevalAvgFee;

	// 平均住院日
	@Column(name = "AS_AVG_DAYS")
	private Double asAvgDays;
	// 死亡病例数
	@Column(name = "AS_DEAD_CNT")
	private Double asDeadCnt;
	// 权重
	@Column(name = "AS_WEIGHT")
	private Double asWeight;
	// 死亡风险等级
	@Column(name = "AS_RISK_LEVEL")
	private Double asRiskLevel;
	// 医疗费标杆
	@Column(name = "AS_DRG_MED_COST")
	private Double asDrgMedCost;
	// 护理费标杆
	@Column(name = "AS_DRG_NURS_COST")
	private Double asDrgNursCost;
	// 医技费标杆
	@Column(name = "AS_DRG_TECH_COST")
	private Double asDrgTechCost;
	// 药耗费标杆
	@Column(name = "AS_DRG_DRUG_COST")
	private Double asDrgDrugCost;
	// 管理费标杆
	@Column(name = "AS_DRG_MANAGE_COST")
	private Double asDrgManageCost;
	
	// 分组器版本
	@Column(name = "VER_CODE")
	private String verCode;
	
	// 计算标杆类型
	@Column(name = "AS_STD_TYPE")
	private String asStdType;
	
	// 药占比
	@Column(name = "AS_DRUG_RATIO")
	private Double asDrugRatio;
	
	// 次均药费
	@Column(name = "AS_AVG_DRUG_FEE")
	private Double asAvgDrugFee;
	
	// 次均材料费
	@Column(name = "AS_AVG_MATERIAL_FEE")
	private Double asAvgMaterialFee;
	
	
	@Column(name = "AS_DRG_CODE")
	private String asDrgCode;
	//耗材占比
	@Column(name = "AS_MATERIAL_RATIO")
	private Double asMaterialRatio;
	//死亡率
	@Column(name = "AS_DIED_RATIO")
	private Double asDiedRatio;
	/**
	 * 
	 */
	public AnnualSTD() {
		super();
	}
	
	
	public AnnualSTD(String asId, String asYear, String asMdcCode, Double asTotalCase, Double asAvgFee, Double primevalAvgFee, Double asAvgDays, Double asDeadCnt, Double asWeight, Double asRiskLevel, Double asDrgMedCost,
			Double asDrgNursCost, Double asDrgTechCost, Double asDrgDrugCost, Double asDrgManageCost, String verCode, String asStdType, Double asDrugRatio, Double asAvgDrugFee, Double asAvgMaterialFee, String asDrgCode,
			Double asMaterialRatio, Double asDiedRatio ) {
		super();
		this.asId = asId;
		this.asYear = asYear;
		this.asMdcCode = asMdcCode;
		this.asTotalCase = asTotalCase;
		this.asAvgFee = asAvgFee;
		this.primevalAvgFee = primevalAvgFee;
		this.asAvgDays = asAvgDays;
		this.asDeadCnt = asDeadCnt;
		this.asWeight = asWeight;
		this.asRiskLevel = asRiskLevel;
		this.asDrgMedCost = asDrgMedCost;
		this.asDrgNursCost = asDrgNursCost;
		this.asDrgTechCost = asDrgTechCost;
		this.asDrgDrugCost = asDrgDrugCost;
		this.asDrgManageCost = asDrgManageCost;
		this.verCode = verCode;
		this.asStdType = asStdType;
		this.asDrugRatio = asDrugRatio;
		this.asAvgDrugFee = asAvgDrugFee;
		this.asAvgMaterialFee = asAvgMaterialFee;
		this.asDrgCode = asDrgCode;
		this.asMaterialRatio = asMaterialRatio;
		this.asDiedRatio = asDiedRatio;
	}


	public String getAsId() {
		return asId;
	}


	public void setAsId(String asId) {
		this.asId = asId;
	}




	public String getAsDrgCode() {
		return asDrgCode;
	}


	public void setAsDrgCode(String asDrgCode) {
		this.asDrgCode = asDrgCode;
	}


	public Double getPrimevalAvgFee() {
		return primevalAvgFee;
	}

	public void setPrimevalAvgFee(Double primevalAvgFee) {
		this.primevalAvgFee = primevalAvgFee;
	}

	public String getAsYear() {
		return asYear;
	}

	public void setAsYear(String asYear) {
		this.asYear = asYear;
	}

	public String getAsMdcCode() {
		return asMdcCode;
	}

	public void setAsMdcCode(String asMdcCode) {
		this.asMdcCode = asMdcCode;
	}

	public Double getAsTotalCase() {
		return asTotalCase;
	}

	public void setAsTotalCase(Double asTotalCase) {
		this.asTotalCase = asTotalCase;
	}

	public Double getAsAvgFee() {
		return asAvgFee;
	}

	public void setAsAvgFee(Double asAvgFee) {
		this.asAvgFee = asAvgFee;
	}

	public Double getAsAvgDays() {
		return asAvgDays;
	}

	public void setAsAvgDays(Double asAvgDays) {
		this.asAvgDays = asAvgDays;
	}

	public Double getAsDeadCnt() {
		return asDeadCnt;
	}

	public void setAsDeadCnt(Double asDeadCnt) {
		this.asDeadCnt = asDeadCnt;
	}

	public Double getAsWeight() {
		return asWeight;
	}

	public void setAsWeight(Double asWeight) {
		this.asWeight = asWeight;
	}

	public Double getAsRiskLevel() {
		return asRiskLevel;
	}

	public void setAsRiskLevel(Double asRiskLevel) {
		this.asRiskLevel = asRiskLevel;
	}
	
	public Double getAsDrgMedCost() {
		return asDrgMedCost;
	}

	public void setAsDrgMedCost(Double asDrgMedCost) {
		this.asDrgMedCost = asDrgMedCost;
	}

	public Double getAsDrgNursCost() {
		return asDrgNursCost;
	}

	public void setAsDrgNursCost(Double asDrgNursCost) {
		this.asDrgNursCost = asDrgNursCost;
	}

	public Double getAsDrgTechCost() {
		return asDrgTechCost;
	}

	public void setAsDrgTechCost(Double asDrgTechCost) {
		this.asDrgTechCost = asDrgTechCost;
	}

	public Double getAsDrgDrugCost() {
		return asDrgDrugCost;
	}

	public void setAsDrgDrugCost(Double asDrgDrugCost) {
		this.asDrgDrugCost = asDrgDrugCost;
	}

	public Double getAsDrgManageCost() {
		return asDrgManageCost;
	}

	public void setAsDrgManageCost(Double asDrgManageCost) {
		this.asDrgManageCost = asDrgManageCost;
	}
	
	public String getVerCode() {
		return verCode;
	}

	public void setVerCode(String verCode) {
		this.verCode = verCode;
	}

	public String getAsStdType() {
		return asStdType;
	}

	public void setAsStdType(String asStdType) {
		this.asStdType = asStdType;
	}

	public Double getAsDrugRatio() {
		return asDrugRatio;
	}

	public void setAsDrugRatio(Double asDrugRatio) {
		this.asDrugRatio = asDrugRatio;
	}

	public Double getAsAvgDrugFee() {
		return asAvgDrugFee;
	}

	public void setAsAvgDrugFee(Double asAvgDrugFee) {
		this.asAvgDrugFee = asAvgDrugFee;
	}

	public Double getAsAvgMaterialFee() {
		return asAvgMaterialFee;
	}

	public void setAsAvgMaterialFee(Double asAvgMaterialFee) {
		this.asAvgMaterialFee = asAvgMaterialFee;
	}

	public Double getAsMaterialRatio() {
		return asMaterialRatio;
	}


	public void setAsMaterialRatio(Double asMaterialRatio) {
		this.asMaterialRatio = asMaterialRatio;
	}


	public Double getAsDiedRatio() {
		return asDiedRatio;
	}


	public void setAsDiedRatio(Double asDiedRatio) {
		this.asDiedRatio = asDiedRatio;
	}


	/*
	 * (non-Javadoc)
	 * 
	 * @see org.openkoala.koala.commons.domain.KoalaBaseEntity#businessKeys()
	 */
	@Override
	public String[] businessKeys() {
		// TODO Auto-generated method stub
		return null;
	}
	

	public String getAsPid() {
		return asPid;
	}


	public void setAsPid(String asPid) {
		this.asPid = asPid;
	}


	@Override
	public Serializable getId() {
		return asPid;
	}
}
